package Jump;

import javax.swing.*;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class JumpFrame extends JFrame {
    public JumpFrame() {
        setTitle("跑酷游戏");
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setResizable(false); //禁止改变窗口大小
        JumpPanel gamePanel = new JumpPanel();
        add(gamePanel);
        pack();
        setLocationRelativeTo(null);//窗口居中
        setVisible(true);
    }
}